<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=7" />
	<title>“半价汇”广告管理系统</title>
	<!-- Reset Stylesheet -->
	<link rel="stylesheet" href="static/css/reset.css" type="text/css" media="screen" />
  
	<!-- Main Stylesheet -->
	<link rel="stylesheet" href="static/css/style.css" type="text/css" media="screen" />
	
	<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
	<link rel="stylesheet" href="static/css/invalid.css" type="text/css" media="screen" />	
	<script type="text/javascript" src="static/js/jquery.min.js"></script>
	<!-- jQuery Configuration -->
	<script type="text/javascript" src="static/js/simpla.jquery.configuration.js"></script>
	<script type="text/javascript" src="static/js/date.js"></script>
	<script type="text/javascript" src="static/js/jquery.datePicker.js"></script>
</head>
<body>
	<div id="body-wrapper">
		<?php include 'admin_sidebar.html'; ?>
		<div id="main-content">
			<div class="content-box">
				<div class="">
					<ul>
						<li><a href="<?php echo spUrl('activity', 'list_activity_post', array('acid'=>$acid));?>">列表</a></li>
						<li><a href="<?php echo spUrl('activity', 'add_activity_post', array('acid'=>$acid));?>">提交</a></li>
					</ul>
				</div>
				<div class="content-box-header">
					<h3>广告列表</h3>
					<div class="clear"></div>
				</div> <!-- End .content-box-header -->
				<div class="content-box-content">
						<table>
							<thead>
							<tr>
								<th width="20%">名称</th>
								<th>添加时间</th>
								<th>链接</th>
								<th width="8%">点击数</th>
								<th width="10%">操作</th>
							</tr>
							</thead>
							<form action="<?php echo spUrl('admin', 'listorder');?>" method="post">
							<?php foreach($results as $k=>$v) { ?>
							<tr>
								<td align="center"><?php echo $v['title'];?></td>
								<td align="center"><?php echo $v['addtime'];?></td>
								<td align="center">http://tb.banjiahui.com<?php echo spUrl('click', 'w_go', array('wid'=>$v['w_id'])); ?></td>
								<th><?php echo $v[nums]; ?></th>
								<td align="center">									
									<a href="<?php echo spUrl('activity', 'edit_activity_post', array('w_id'=>$v['w_id'], 'type'=>$v['type']));?>"><img src="static/images/icons/pencil.png" alt="修改"  title="修改"/></a>
								</td>
							</tr>
							<?php } ?>
							<tfoot>
								<tr>
									<td colspan="6">
									<div class="pagination">
										<div class="page-bottom tp">
											<?php if($pager[current_page] == $pager[first_page]) {?>
											<span class="page-start"><span><b class="icon"></b>上一页</span></span>
											<?php } else { ?>
											<a href="<?php echo spUrl('idea', $a, array('page'=>$pager[prev_page])); ?>" class="page-prev"><b class="icon"></b>上一页</a>
											<?php } ?>
											<?php foreach($pager[all_pages] as $thepage) {?>
											<?php if($thepage == $pager[current_page]) {?>
											<span class="page-cur"><?php echo $thepage; ?></span>
											<?php } else { ?>
											<a href="<?php echo spUrl('idea', $a,  array('page'=>$thepage)); ?>" class="number"><?php echo $thepage; ?></a>
											<?php }} ?>
											<?php if($pager[current_page] == $pager[last_page]) {?>
											<span class="page-end"><b class="icon"></b>下一页</span>
											<?php } else { ?>
											<a href="<?php echo spUrl('idea', $a, array('page'=>$pager[next_page])); ?>" class="page-next">下一页<b class="icon"></b></a>
											<?php } ?>
										</div>
									</div>
									<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
</script>
</html>